package com.fatmeraid.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@Schema(description = "农户申请实体类")
@TableName("farmer_application")
public class FarmerApplication {
	@Schema(description = "申请id")
	@TableId(type = IdType.AUTO, value = "application_id")
	private Integer applicationId;

	@Schema(description = "农户id")
	private Long userId;

	@Schema(description = "农户姓名")
	@TableField(value = "real_name")
	private String realName;

	@Schema(description = "身份证号")
	private String idCard;

	@Schema(description = "农户申请证明链接")
	private  String farmerProof;
	@Schema(description = "申请说明")
	private String applicationContent;
	@Schema(description = "状态：0-待审核，1-通过，2-驳回")
	private Integer status;
	@Schema(description = "申请时间")
	@TableField(value = "apply_time")
	private LocalDateTime applicationTime;

	@Schema(description = "审核时间")
	@TableField(value = "audit_time")
	private LocalDateTime auditTime;

	@Schema(description = "审核人id")
	private Long auditorId;

	@Schema(description = "审核意见")
	private String auditRemark;

}
